<!--
  功能说明：文件上传与下载示例页面。
-->
<template>
  <div>
    <h2>文件上传与下载</h2>
    <FileUploader />
    <hr />
    <button @click="onDownload">下载示例文件</button>
  </div>
</template>

<script>
import FileUploader from '../components/FileUploader.vue'
import { downloadFile } from '../api/files'

export default {
  name: 'FilesPage',
  components: { FileUploader },
  methods: {
    onDownload() {
      downloadFile()
    }
  }
}
</script>